package com.by;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 商品服务
 */
@SpringBootApplication
@EnableDiscoveryClient // 开启服务注册发现（让服务注册到 nacos）
@EnableFeignClients(basePackages = "com.by.feign.client")
@MapperScan("com.by.mapper")
public class GoodsApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(GoodsApp.class, args);
        System.out.println("🚀 Goods Service 启动成功！");
    }
}
